home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mintmant / pause.txt < prev    next >
Text File  |  1992-03-24  |  1KB  |  64 lines

  1. Pause(2)                  Oct. 1, 1991                   Pause(2)
  2.  
  3.  
  4.  
  5. NAME
  6.      Pause - suspend process until a signal is received
  7.  
  8. SYNOPSIS
  9.      void Pause();
  10.  
  11. DESCRIPTION
  12.      Pause causes the calling process to go to sleep until a sig-
  13.      nal  that  is  not being ignored or masked is received. If a
  14.      signal handler has been established for that signal with the
  15.      Psignal  system  call,  then  the  handler is invoked before
  16.      Pause returns; if the handler does a longjmp to a  different
  17.      point  in  the  program,  if it exits the program, or if the
  18.      signal handler was set to SIG_DFL and the default action for
  19.      the  signal  is  to  terminate  the process, then Pause will
  20.      never return.
  21.  
  22. SEE ALSO
  23.      Psigblock(2), Psignal(2), Psigsetmask(2)
  24.  
  25. BUGS
  26.      There really should be a Psigpause system call that sets the
  27.      signal  mask  and  pauses atomically; as it stands now, many
  28.      programs may face a race condition whereby  a  signal  could
  29.      arrive  between the time it's unmasked and the time Pause is
  30.      called.
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. Version 0.9   Last change: MiNT Programmer's Manual             1
  61.  
  62.  
  63.  
  64.